package com.ruiyian.project.fabric.service.impl;

import com.ruiyian.project.fabric.domain.Fabric;
import com.ruiyian.project.fabric.mapper.FabricMapper;
import com.ruiyian.project.fabric.service.FabricService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2021/3/31
 * Desc:
 */
@Service
public class FabricServiceImpl implements FabricService {
    @Autowired
    private FabricMapper fabricMapper;

    @Override
    public List<Fabric> selectList(Fabric fabric) {
        return fabricMapper.selectList(fabric);
    }

    @Override
    public void save(Fabric fabric) {
        fabricMapper.save(fabric);
    }

    @Override
    public void edit(Fabric fabric) {
        fabricMapper.edit(fabric);
    }

    @Override
    public void editFabric(Fabric fabric) {
        fabricMapper.editFabric(fabric);
    }

    @Override
    public Fabric findOne(Long id) {
        return fabricMapper.findOne(id);
    }

    @Override
    public void delete(Long id) {
        fabricMapper.delete(id);
    }

    @Override
    public void deleteBatch(List<Fabric> list) {
        fabricMapper.deleteBatch(list);
    }
}
